package com.bailiban.qa.client;

import com.bailiban.common.entity.Result;
import com.bailiban.qa.client.impl.LabelFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhulang
 * @Classname FeignClient
 * @Description FeignClient
 */
@FeignClient(value = "bailiban-base", fallback = LabelFeignClientImpl.class)
public interface LabelFeignClient {
    /**
     * 被调用服务接口路径映射
     *
     * @param id
     * @return
     */
    @GetMapping("label/{id}")
    Result findLabelById(@PathVariable String id);
}
